# Contributor: Luca Weiss <luca@lucaweiss.eu>
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=lpa-gtk
pkgver=0.1
pkgrel=1
pkgdesc="Download and manage eSIM profiles"
url="https://codeberg.org/lucaweiss/lpa-gtk"
license="GPL-3.0-only"
arch="noarch !x86" # blocked by lpac
depends="
	gtk4.0
	libadwaita
	lpac
	py3-gobject3
	"
checkdepends="appstream"
makedepends="
	blueprint-compiler
	desktop-file-utils
	meson
	"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/lucaweiss/lpa-gtk/archive/$pkgver.tar.gz"
subpackages="$pkgname-pyc"
builddir="$srcdir/$pkgname"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install -C output
}

sha512sums="
2ffe84069f2166f3d281e43a3c8a194e3119999f0f47a0c2afb036a49d42139c36dbfa335ca9359fd5e3418e415fa2dc05fa7f68edb5d0cf1cf73b7deb689d66  lpa-gtk-0.1.tar.gz
"
